package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPeripheryDetailDO;
import com.starlink.model.request.MallPeripheryDetailRequest;
import com.starlink.model.vo.MallPeripheryDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPeripheryDetailDtoMapper {

    MallPeripheryDetailDtoMapper INSTANCE = Mappers.getMapper(MallPeripheryDetailDtoMapper.class);

    /**
    * DO to VO
    * @param mallPeripheryDetailDO
    * @return
    */
    MallPeripheryDetailVO do2VO(MallPeripheryDetailDO mallPeripheryDetailDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPeripheryDetailDO request2DO(MallPeripheryDetailRequest request);
}
